package steak.xteamy.client;

public class ChannelButtonState {
    private boolean publicC;
    private boolean wolfC;

    public ChannelButtonState(boolean publicC, boolean wolfC) {
        this.publicC = publicC;
        this.wolfC = wolfC;
    }

    public void setBoolean(int index, boolean value) {
        switch (index) {
            case 0: {
                publicC = value;
                break;
            }
            case 1: {
                wolfC = value;
                break;
            }
            case 2: {
                break;
            }
            default:
                break;
        }
    }

    public boolean getBoolean(int index) {
        if (index == 0) {
            if (KillerGroupClient.channelP == 2) {
                return false;
            }
            return publicC;
        } else if (index == 1) {
            return wolfC;
        } else return KillerGroupClient.channelP == 2;
    }

    public void reset() {
        publicC = false;
        wolfC = false;
    }
}
